Using the placeholder Attribute in HTML
The placeholder attribute in HTML specifies a short hint or example text that is displayed inside an input field or textarea before the user enters a value. It helps guide users about the expected type of input.
Works with <input> and <textarea> elements.
The text disappears when the user types something into the field.
It should be used as a hint or example, not as a replacement for labels.
Does not enforce validation or restrictions — it’s only a visual guide.